package com.ywqf_api.dao;

import com.ywqf_api.dto.in.*;
import com.ywqf_api.entity.*;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public interface MobileDao {

    int saveLogin(@Param("phone")String phone,@Param("password")String password);

    String findCustomerId(@Param("phone") String phone);

    Customer findCustomer(@Param("telephone")String telephone);

    Customer getUserInfo(UserLoginDto userLoginDto);

    House getUserHouse(@Param("houseId")Integer houseId);

    List<House> findIsRentSale(@Param("houseId")Integer houseId);

    CommunityCorps findCommCorp(@Param("communityId")Integer communityId);

    List<ParkingData> getUserParking(@Param("houseId")Integer houseId);

    List<Banner> findBannerList(@Param("communityId")Integer communityId);

    List<CommunityCorps> findCommunityCorp(@Param("search")String search);

    List<HouseIdAndNum> findHouseIdNum(@Param("search")String search,@Param("communityId")Integer communityId);

    int saveComplaint(@Param("customerId")Integer customerId,@Param("content")String content);

    List<RoleDept> findRoleList(@Param("communityId")Integer communityId);

    List<UserRoleDept> findUserList(@Param("deptId")Integer deptId,@Param("communityId")Integer communityId);

    int saveQuestionnaire(@Param("id")Integer id,@Param("value")String value,@Param("customerId")Integer customerId,@Param("questionId")Integer questionId);

    Questionnaire findQuestionnaire(@Param("communityId")Integer communityId);

    Integer findQuestionnaireCustomer(@Param("customerId")Integer customerId,@Param("questionId")Integer questionId);

    List<Questionnaire> findQuestionnaireList(@Param("questionnaireId")Integer questionnaireId);

    List<Questionnaire> findOption(@Param("questionnaireId")Integer questionnaireId,@Param("questionSort")Integer questionSort);

    order findOrderGoodsInfo(@Param("identification") Integer identification);

    Water findWaterFeeTimeAndCorp(@Param("houseId")Integer houseId,@Param("communityId")Integer communityId);

    Water findCorp(@Param("communityId")Integer communityId);

    Electricity findElectricityFeeTimeAndCorpAndHouseNum(@Param("houseId")Integer houseId,@Param("communityId")Integer communityId);

    Heating findHeatingDate(@Param("houseId")Integer houseId);

    Heating findHeatingData(@Param("houseId")Integer houseId,@Param("communityId")Integer communityId);

    List<Heating> findHeatingDisc(@Param("communityId")Integer communityId);

    DiscountMessage findCommunityDiscountMessage(@Param("communityId")Integer communityId);

    EstateData findEstateDate(@Param("houseId")Integer houseId);

    EstateData findEstateData(@Param("houseId")Integer houseId,@Param("communityId")Integer communityId);

    List<EstateData> findEstateDisc(@Param("communityId")Integer communityId);

    ParkingData findParkingDate(@Param("houseId")Integer houseId,@Param("parkingSpaceId")Integer parkingSpaceId);

    ParkingData findParkingData(@Param("houseId")Integer houseId,@Param("communityId")Integer communityId,@Param("parkingSpaceId")Integer parkingSpaceId);

    List<ParkingData> findParkingDisc(@Param("communityId")Integer community);

    int saveWaterOrder(WaterFeeDto waterFeeDto);

    int saveElectricityOrder(ElectricityFeeDto electricityFeeDto);

    int saveHeatingOrder(HeatingFeeDto heatingFeeDto);

    int saveParkingOrder(ParkingFeeDto parkingFeeDto);

    int saveEstateOrder(EstateFeeDto estateFeeDto);

    int saveWaterOrderGood(WaterFeeDto waterFeeDto);

    int saveElectricityOrderGood(ElectricityFeeDto electricityFeeDto);

    int saveHeatingOrderGood(HeatingFeeDto heatingFeeDto);

    int saveParkingOrderGood(ParkingFeeDto parkingFeeDto);

    int saveEstateOrderGood(EstateFeeDto estateFeeDto);

    int saveWater(WaterFeeDto waterFeeDto);

    int updateOrderWater(@Param("waterId")Integer waterId,@Param("orderId")Integer orderId);

    int saveElectricity(ElectricityFeeDto electricityFeeDto);

    int updateOrderElect(@Param("electId")Integer electId,@Param("orderId")Integer orderId);

    int saveHeating(HeatingFeeDto heatingFeeDto);

    int updateOrderHeating(@Param("heatingId")Integer heatingId,@Param("orderId")Integer orderId);

    int saveParking(ParkingFeeDto parkingFeeDto);

    int saveParkingstatist(@Param("parkingPayId")Integer parkingPayId,@Param("parkingSpaceId")Integer parkingSpaceId,@Param("years")Integer years,@Param("months")Integer months);

    int updateOrderParking(@Param("parkingId")Integer parkingId,@Param("orderId")Integer orderId);

    int saveEstate(EstateFeeDto estateFeeDto);

    int saveEstatestatist(@Param("estatePayId")Integer estatePayId,@Param("houseId")Integer houseId,@Param("years")Integer years,@Param("months")Integer months);

    int updateOrderEstate(@Param("estatePayId")Integer estatePayId,@Param("orderId")Integer orderId);

    Electricity findElectricityHouse(@Param("houseId")Integer houseId);

    List<EstateData> findEstateCalendar(@Param("houseId")Integer houseId);

    List<EstateData> findEstateMonthStatus(@Param("houseId")Integer houseId,@Param("year")Integer year);

    List<ParkingData> findParkingCalendar(@Param("parkingSpaceId")Integer parkingSpaceId);

    List<ParkingData> findParkingMonthStatus(@Param("parkingSpaceId")Integer parkingSpaceId,@Param("year")Integer year);

    int updateOrderStatus(@Param("orderId")int orderId,@Param("thirdNo")String thirdNo);

}
